//通过ajax获取html页面html代码，为vue-rounter获取组件写的
function ajaxGetHtml(url) {
    var result;
    $.ajax({
        type: "GET",
        url: url,
        data: {},
        dataType: 'html',
        async:false,
        error: function (res) {
            alert("Connection error:" + res.error);
        },
        success: function (res) {
            result = res;
        },
    });
    return result;
}